<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>失业补助金或临时生活补助</title>
    <link rel="stylesheet" href="./styles/web/index.css">
    <link rel="stylesheet" href="./styles/web/print.css" type="text/css" media="print">
</head>

<body>
    <div class="all">
        <!-- 头部开始 -->
        <script src="http://rsj.beijing.gov.cn/images/rsj_header.js"></script>
        <include src="./include/header.html"></include>
        <!-- 头部结束 -->
        <!-- 申请提示开始 -->
        <div class="message">
            <div class="content clearfix">
                <div class="zuo left scroll">
                    <div class="first common">
                        <div class="titles concommon">
                            <a href="./index.html">
                                < 首页</a> <span class="on">|</span>
                                    <span>申领</span>
                        </div>
                        <div class="zscommon" id="search">
                            <div class="order_list" id="J_warpcx">
                                <script type="text/html" id="J_itemcx">
                                <%if(data.executeResult == 1){%>
                                    <% var _data = data.lcsljl%>
                                    <%for(var i=0;i<_data.length;i++){%>
                                <div class='cxbg clearfix'>
                                    <%if(_data[i].sqrq){%>
                                    <p class="left jgmc jgmc_p clearfix" style="width: 100%;">
                                        <span class="left yy_span">申请日期：</span>
                                        <span class="left yy_span " style="text-align: right;"><%=_data[i].sqrq%></span>
                                    </p>
                                    <%}%>
                                    <%if(_data[i].btlx){%>
                                    <p class="left jgmc jgmc_p clearfix" style="width: 100%;">
                                        <span class="left yy_span">补贴类型：</span>
                                        <span class="left yy_span " style="text-align: right;"><%=_data[i].btlx%></span>
                                    </p>
                                    <%}%>
                                    <%if(_data[i].btksny && _data[i].btjsny){%>
                                    <p class="left jgmc jgmc_p clearfix" style="width: 100%;">
                                            <span class="left yy_span">享受起止日期：</span>
                                            <span class="left yy_span " style="text-align: right;"><%=_data[i].btksny%>至<%=_data[i].btjsny%></span>
                                    </p>
                                    <%}%>
                                    <%if(_data[i].shbtgyy){%>
                                    <p class="left jgmc jgmc_p clearfix" style="width: 100%;">
                                        <span class="left yy_span">审核不通过原因：</span>
                                        <span class="left yy_span " style="text-align: right;"><%=_data[i].shbtgyy%></span>
                                    </p>
                                    <%}%>
                                    <p class="left jgmc jgmc_p clearfix" style="width: 100%;">
                                            <span class="left yy_span">享受状态：</span>
                                            <span class="left yy_span " style="text-align: right;"><%=_data[i].xsztmc%></span>
                                            <span class="right yy_span ckxq J_ckxq" sqid='<%=_data[i].sqid%>'>查看详情</span>
                                        </p>
                                </div>
                                <%}%>
                                <%}%>
                            </script>
                            </div>

                        </div>
                    </div>
                </div>
                <div class="you right">
                    <div class="top">
                        <!-- <a href="../help.html" target="_blank" class="helpIcon right">帮助</a> -->
                        <div class="person on">
                            <p class="on xm"></p>
                            <p class="lxdh"></p>
                        </div>
                        <p class="sfzhm"></p>
                    </div>
                    <div id="J_tcwrap">
                        <script type="text/html" id="J_tcitem">
                     <%if(data.executeResult == 1){%>
                         <% var _data = data.info%>
                    <div class="middle">
                        <%if(_data.xsztmc){%>
                            <div class="yyxx_box">
                                <p class="zjyyxx" style="width: 160px;">
                                    <span>审核状态：</span>
                                    <span class="yhzh" title="<%=_data.xsztmc%>"><%=_data.xsztmc%></span>
                                </p>
                                <a href="#" class="J_jl">历次申领记录查询</a>
                            </div>
                        <%}else{%>
                            <h3 class="">暂无申领记录</h3>     
                        <%}%> 
                        </div>
                        <div class="middle">
                            <%if(_data.yhzh){%>
                                <div class="yyxx_box clearfix"> 
                                 <p class="zjyyxx left" style="width: 176px;">
                                     <span>银行账号：</span>
                                     <span class="yhzh" title="<%=_data.yhzh%>"><%=_data.yhzh%></span>
                                 </p>
                                 <button class="right J_yhk" >银行账号变更</button>
                             </div>   
                            <%}else{%> 
                             <h3 class="">暂无银行账号信息</h3>  
                            <%}%> 
                               </div>
                <%}%>
            </script>
                    </div>
                    <div class="newbox">
                        <div class="box_two">
                            <p class="zxtel">咨询电话：12333</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 申请提示结束 -->
        <!-- 尾部开始 -->
        <script src="http://rsj.beijing.gov.cn/footer.js"></script>
        <!-- 尾部结束 -->
    </div>
    <!-- 弹框开始 -->
    <!--机构名录弹框-->
    <!-- <div class="box" sfnr='0'></div> -->
</body>
<script src="./common/js/vendor.js"></script>
<script src="./common/js/jquery.js"></script>
<script src="./common/js/validator.js"></script>
<script src="./common/js/template-native.js"></script>
<script src="./common/common.js"></script>
<script src="./common/js/common.js"></script>
<script>
    $(function () {
        var sqid,lastdayoftheM;
        getLccx();//历次查询
        getLcyyxc(); //历次预约查询
        getYyhzhCx(); //原银行账户信息查询

        $(document).on('click', '.J_ckxq', function () {
            sqid = $(this).attr('sqid')
            window.location.href = './yyxq.html?sqid=' + sqid;
        });

        //历次查询
        function getLccx() {
            $.asyncRender({
                url: '/sybxjbz/lcsljlCx',
                type: 'get',
                wrap: '#J_warpcx',
                tem: '#J_itemcx',
                pos: 'returnData'
            }).done(function (result) {
                var msg = result.returnData;
                if (msg.executeResult == "1") {
                } else {
                    $.layerMsg(msg.message, '确定')
                }
            })
        }
        //原银行账户信息查询
        function getYyhzhCx() {
            $.asyncRender({
                url: '/sybxjbz/yyhzhCx',
                type: 'get',
                async: true,
                wrap: '#J_wrap1',
                tem: '#J_item1',
                pos: 'returnData'
            }).done(function (result) {
                var msg = result.returnData;
                if (msg.executeResult == "1") {
                    lastdayoftheM = msg.lastdayoftheM;  //1是 0不是
                    yhzhbg = msg.yyhzhxx.yhzh;
                    sqid = msg.yyhzhxx.sqid;
                } else {
                    $.layerMsg(msg.message, '确定')
                }
            })
        }



        $(document).on('click', '.J_jl', function () {
            window.location.href = './bzjcx.html';
        });
        //银行账号变更
        $(document).on('click', '.J_yhk', function () {
            if (lastdayoftheM == '1') {
                $.layerMsg('每月最后一天因资金结算期，银行账号变更功能暂停，请在其他时间进行银行账号变更，谢谢理解和支持。', '确定');
                return false;
            } else if (lastdayoftheM == '0') {
                if (yhzhbg) {
                    window.location.href = "./yhkwh.html"
                } else {
                    $(this).attr("disabled", true);
                }
            }
        });
    });
</script>

</html>